home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 764 < prev    next >
Internet Message Format  |  1996-08-06  |  929b

  1. Path: news.rmii.com!usenet
  2. From: jcoffin@rmii.com (Jerry Coffin)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Q: char **foo, char *foo[], and char foo[][] ?
  5. Date: Thu, 18 Apr 1996 13:10:31 -0600
  6. Organization: TAEUS
  7. Message-ID: <MPLANET.317693a7jcoffin989d39@news.rmii.com>
  8. References: <4l33ok$oo2@Sherlock.lectra.fr>
  9. NNTP-Posting-Host: slip22144.rmii.com
  10. X-Newsreader: MicroPlanet News32 v1.00 Beta Build 302
  11.  
  12. In article <4l33ok$oo2@Sherlock.lectra.fr>, phil@rd.lectra.fr says...
  13. > Considering the 3 following declarations:
  14. > 1 - char **foo;
  15. > 2 - char *foo[];
  16. > 3 - char foo[][];
  17. > I know that there is a (big !) difference in memory reservation, but I do
  18. > not know if foo IS or IS NOT of the same type in these three cases.
  19. [ ... ] 
  20.  
  21. In declaring a parameter to a function, any declaration of an array is treated 
  22. as a declaration of a pointer.  In all other situations, the two are separate 
  23. and distinct.
  24.     Later,
  25.     Jerry.
  26.